package com.ctrip.ec.biz.dao.forward;
import com.ctrip.ec.dal.DaoBase;
import com.ctrip.ec.biz.entity.forward.ForwardGoodsEntity;
import com.ctrip.ec.dal.DbAccess;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;

@Service
public class ForwardGoodsDao extends DaoBase<ForwardGoodsEntity> {
    public ForwardGoodsDao() {
        super(ForwardGoodsEntity.class);
    }
    public ForwardGoodsDao(DbAccess db) {
        super(ForwardGoodsEntity.class,db);
    }

    public void deleteByForwardActivityId(Long forwardActivityId) throws SQLException {
        String sql = "delete from " + this.getTableName() + " where forward_activity_id=?";
        this.db.execute(sql,forwardActivityId);
    }


}
